package main

import (
	"fmt"

	"gitee.com/workits/pkgs/toolx"
	"gitee.com/workits/pkgs/toolx/cmd"
	_ "github.com/glebarez/go-sqlite"
	_ "github.com/go-sql-driver/mysql"
	_ "github.com/lib/pq"
)

func main() {
	// 全局错误处理
	defer func() {
		if err := recover(); err != nil {
			if err != toolx.ErrExit {
				fmt.Printf("%v\n", err)
			}
		}
	}()

	cmd.Execute()
}
